home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
HPAVC
/
HPAVC CD-ROM.iso
/
RLE_SPR.ZIP
/
TEST.C
< prev
next >
Wrap
C/C++ Source or Header
|
1997-01-03
|
837b
|
39 lines
// I N C L U D E /////////////////////////////////////////////////////////////
#include <conio.h>
#include <stdlib.h>
#include <wgt5.h>
#include "rle_spr.h"
// F U N C T I O N S /////////////////////////////////////////////////////////
void main (void)
{
short oldmode;
color pal[256];
block sprites[2];
oldmode=wgetmode ();
vga256();
wloadsprites (pal, "wgt_spr.spr", sprites, 0, 0);
wloadsprites_rle (pal, "rle_spr.spr", &sprites[1], 0, 0);
wsetpalette (0, 255, pal);
wputblock (0, 15, sprites[0], XRAY);
wputblock (150, 100, sprites[1], XRAY);
wtextcolor (15);
wouttextxy (0, 0, NULL, "WGT Sprite");
wouttextxy (180, 90, NULL, "RLE Sprite");
getch();
wfreesprites (sprites, 0, 1);
wsetmode (oldmode);
}